package cn.lingyangwl.agile.auth.model.rqrs.third;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 登录二维码缓存
 *
 * @author shenguangyang
 */
@Data
@Accessors(chain = true)
public class LoginQrcodeInfo implements Serializable {
    /**
     * 二维码id
     */
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String qrcodeId;

    /**
     * 客户端id
     */
    private String clientId;

    /**
     * 授权方式
     */
    private String grantType;

    /**
     * 用户是否扫码
     */
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private Boolean isScan = Boolean.FALSE;

    /**
     * 用户扫码后推送的id
     */
    @NotEmpty(message = ValidationCons.NOT_EMPTY)
    private String openId;
}
